export const COLOR_MAP = {
	blue: '#0266ff',
	primary: '#0266ff',
	processing: '#0266ff',
	green: '#52c41a',
	success: '#52c41a',
	orange: '#faad14',
	warning: '#faad14',
	red: '#ff4d4f',
	error: '#ff4d4f',
	danger: '#ff4d4f',
	invalid: '#b9bfcb',
	gray: 'rgba(0, 0, 0, 0.65)',
	secondary: 'rgba(0, 0, 0, 0.65)',
	white: '#fff',
	black: 'rgba(0, 0, 0, 0.85)',
	default: 'rgba(0, 0, 0, 0.85)'
}

export const HOUSE_IMAGE_TYPES = [
	{
		value: 3,
		label: '卧室'
	},
	{
		value: 4,
		label: '客厅'
	},
	{
		value: 5,
		label: '厨房'
	},
	{
		value: 6,
		label: '卫生间'
	},
	{
		value: 7,
		label: '阳台'
	},
	{
		value: 8,
		label: '吧台'
	},
	{
		value: 9,
		label: '楼道'
	},
	{
		value: 10,
		label: '环境'
	},
	{
		value: 11,
		label: '其他'
	}
]
//流水审核状态
export const statusMap = {
	1: {
		label: '待审核',
		color: 'processing'
	},
	2: {
		label: '已通过',
		color: 'success'
	},
	3: {
		label: '已驳回',
		color: 'error'
	}
}
//证件类型
export const certificationList = [
	{
		value: 1,
		label: '身份证'
	},
	{
		value: 2,
		label: '护照'
	},
	{
		value: 3,
		label: '港澳通行证'
	},
	{
		value: 4,
		label: '台湾同胞证'
	},
	{
		value: 5,
		label: '军官证'
	},
	{
		value: 6,
		label: '其他证件'
	}
]
export const CERTIFICATION_TYPE_MAP: any = {
	1: '身份证',
	2: '护照',
	3: '港澳通行证',
	4: '台湾同胞证',
	5: '军官证',
	6: '其他证件'
}
//包租合同目前仅支持身份证
export const CERTIFICATION_MAP: any = {1: '身份证'}
/**
 * 子业务类型
 */
export const SUB_TYPE_MAP: any = {
	houseImageTypes: HOUSE_IMAGE_TYPES
}

export const DIC_LABEL_MAP = {
	// 费用科目
	FEESUBJECT: 'FEESUBJECT',
	// 房屋配置
	HOUSECONFIG: 'HOUSECONFIG',
	// 人才房类型
	TALENTAPARTMENTHOUSE: 'TALENTAPARTMENT@PERSONHOUSE'
}
export const DIC_TAG_MAP = {
	// 房屋押金
	HOUSE_DEPOSIT: 'HOUSE_DEPOSIT_FEE',
	// 房屋租金
	HOUSE_RENT: 'HOUSE_RENTAL_FEE'
}

export const DIC_PID_MAP: any = {
	// 房源标签
	'HOUSE@TAGS': '1d042d534f22441d9e5358ac1cb5c568',
	// 装修类型
	'HOUSE@DECORTYPE': '5471382485f74dc482a9d9894c6cdff5',
	// 房源性质
	'HOUSE@NATURE': '37e178cabf9efecab24c22d34c04d76f',
	// 房屋配置
	'HOUSE@OUTFIT': '1f05bd1d862648348591684af1e64bcc',
	// 集中式公区配置
	'HOUSE@PUBAREACONFIG': 'd2b2cf6da51d41e193df327045b5e1be',
	// 项目品牌
	'HOUSE@PROJECTBRAND': 'e2b3f9ebf32c4cb1a69a80c07ea0533c',
	// 设备品牌
	'HOUSE@DEVICEBRAND': '1ad1a85104d14730821b9ae88553d0b6',
	// 接待要求
	'HOUSE@RECEPTION': '26438ff4fd1f4eacaecda3ea67b360f9',
	// 订单来源
	'CONTRACT@ORDERSOURCE': 'eabc326224384d899a0f872bc5d07857',
	// 租客解约原因
	'CONTRACT@RENTER_CANCELREASON': '33620257e39d48139c3533383194caa1',
	// 业主解约原因
	'CONTRACT@OWNER_CANCELREASON': '6df9ce3d4f39423ea3c3bfec0a242089',
	// 支付方式
	'PAYMENTMETHOD@PAYMENTMETHOD': '7bf14df972f64b94b7da8d3ff88ead18',
	// 客户来源
	'CUSTOMER@CHANNELSOURCE': 'add63a4f45ba444e8ca3c57ec4193a35',
	// 积分来源
	'CUSTOMER@INTEGRALSOURCE': 'ac3f06e327a44efba721c95fc6d74b1d',
	// 意见反馈类型
	'CUSTOMER@FEEDBACKTYPE': '0896619e51d647078689e356ac52582d',
	// 国家（地区）
	'CUSTOMER@COUNTRY': 'f2018d0737e0468e9bdd36059cb133eb',
	// 爱好
	'CUSTOMER@HOBBY': 'aa0d5464605944538c06b01ef8a0a2ff',
	// 重点人群
	'CUSTOMER@KEY_GROUPS': '566c542ca7fa4fee907411d2f36266f0',
	// 与租户关系
	'CUSTOMER@RENTERRELATION': 'a3c6ca0923e34841968c7b4a512c92c5',
	// 维修类型
	'WORKORDER@REPAIR': '3f9ea82913284a6eb5ee29cf0ff23b36',
	// 保洁类型
	'WORKORDER@CLEANING': '4f9ea82913284a6eb5ee29cf0ff23b36',
	// 能耗费
	'FEESUBJECT@ENERGY': '7a5cf40bfbc741799d33521614e339d4',
	// 人才类型
	'CUSTOMER@TALENTTYPE': '0b787692202444a3a18901753c725718',
	// 人才房类型
	'CUSTOMER@HOUSETYPE': '0e29b287cd26461a835bf07802b8894c',
	'FEESUBJECT@SERVICE': 'bb0478f6547b400fa79c5b28402bbbd9'
}

/**
 * 下拉框加载默认字段名
 */
export const DEFAULT_FIELD_NAME = {
	label: 'name',
	value: 'id',
	key: 'id',
	children: 'children',
	options: 'children'
}

export const FILE_ICON_MAP: any = {
	default: {
		icon: 'file'
	},
	image: {
		icon: 'file_img',
		regex: /\.(gif|jpg|jpeg|png|bmp|ico)$/i
	},
	video: {
		icon: 'file_video',
		regex: /\.(avi|wmv|mpeg|mp4|mov|mkv|flv|f4v|m4v|rmvb|rm|3gp|vob)$/i
	},
	audio: {
		icon: 'file_music',
		regex: /\.(mp3|wav|m4a|ape|flac|ape|ogg)$/i
	},
	archive: {
		icon: 'file_zip',
		regex: /\.(zip|rar|7z|cab|tgz|tar.gz|tar.xz|lz|deb)$/i
	},
	code: {
		icon: 'file_code',
		regex: /\.(java|js|c|ts|json|vue|tsx|jsx|sh|sql)$/i
	},
	html: {
		icon: 'file_html',
		regex: /\.(html|htm|xml)$/i
	},
	doc: {
		icon: 'file_word',
		regex: /\.(doc|docx)$/i
	},
	xls: {
		icon: 'file_excel',
		regex: /\.(xls|xlsx|csv)$/i
	},
	ppt: {
		icon: 'file_ppt',
		regex: /\.(ppt|pptx)$/i
	},
	text: {
		icon: 'file_txt',
		regex: /\.(txt|log|ini|properties|conf)$/i
	},
	pdf: {
		icon: 'file_pdf',
		regex: /\.(pdf)$/i
	},
	exe: {
		icon: 'file_exe',
		regex: /\.(exe)$/i
	},
	iso: {
		icon: 'file_iso',
		regex: /\.(iso)$/i
	},
	psd: {
		icon: 'file_psd',
		regex: /\.(psd)$/i
	},
	flash: {
		icon: 'file_flash',
		regex: /\.(flash)$/i
	},
	torrent: {
		icon: 'file_bt',
		regex: /\.(torrent)$/i
	}
}

export const EMPTY_IMAGE =
	''

export const deviceTypeOptions = [
	{
		name: '冷水费',
		id: 1
	},
	{
		name: '中水费',
		id: 2
	},
	{
		name: '热水费',
		id: 3
	},
	{
		name: '电费',
		id: 4
	}
]

export const MAP_PAY_MODEL = {
	1: '冷水费',
	2: '中水费',
	3: '热水费',
	4: '电费'
}

export const APPROVAL_TYPE_LIST = [
	{label: '租客合同审批', value: 3},
	{label: '租客退租审批', value: 30},
	{label: '优惠活动审批', value: 50},
	{label: '付款优惠审批', value: 51},
	{label: '优惠券审批', value: 52},

	{label: '企业合同新增审批', value: 4},
	{label: '企业合同退租审批', value: 40},
	{label: '企业合同续租审批', value: 41},
	{label: '企业合同补签审批', value: 42},
	{label: '企业子合同退租审批', value: 43},
	{label: '企业子合同换房审批', value: 44},
	{label: '业主合同新增审批', value: 1},
	{label: '业主合同退租审批', value: 10},
	{label: '业主合同续租审批', value: 11},
	// 开具发票审批 冲红审批
	{label: '开具发票审批', value: 6},
	{label: '冲红发票审批', value: 61},
	// 人才公寓对应审批
	{label: '人才认定审批', value: 9},
	{label: '房源认定审批', value: 8}
]
